<?php

declare(strict_types=1);

namespace App\CustHub\Request;

use Mine\MineRequest;

class RoleSchemeRequest extends MineRequest
{
    public function saveRules()
    {
        return [
            'name' => 'required|max:255',
            'wechat_type' => 'required|in:0,1',
            'role_model' => 'required|in:0,1'
        ];
    }

    public function getInfoRules()
    {
        return [
            'id' => 'required'
        ];
    }

    public function updateRules()
    {
        return [
            'id' => 'required',
            'wechat_type' => 'required|in:0,1',
            'role_model' => 'required|in:0,1'
        ];
    }

    public function renameRules()
    {
        return [
            'id' => 'required',
            'name' => 'required|max:255'
        ];
    }

    public function copyRules()
    {
        return [
            'id' => 'required'
        ];
    }

    public function deleteRules()
    {
        return [
            'id' => 'required'
        ];
    }

    public function changeSortRules()
    {
        return [
            'source_id' => 'required',
            'target_id' => 'required'
        ];
    }
}